package cn.slipi.admin.entity;

import cn.slipi.admin.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author lee
 * @since 2020-10-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TSysMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 菜单级别
     */
    private Integer level;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单显示名称
     */
    private String title;

    /**
     * 菜单排序
     */
    private Integer sort;

    /**
     * layui菜单icon
     */
    private String icon;

    /**
     * route 跳转路径
     */
    private String jump;

    /**
     * 全局是否展示（1:展示，0:不展示）
     */
    @TableField(value = "`show`")
    private Integer show;

    /**
     * 最后操作人id
     */
    private Integer lastUserId;


}
